package se.webbzon.boltzmann.minigame.page;

public interface Page {
	
	/** Returns true if this page is visible. **/
	public boolean isVisible();
	
	/** Sets whatever this page is visible. **/
	public void setVisible(boolean visible);
	
	/** Returns true if the provided page item was added to the page. **/
	public boolean addItem(PageItem item);
	
	/** Returns true if the provided page item was removed from the page. **/
	public boolean removeItem(PageItem item);
	
	/** Clears all the page items from this page. **/
	public void clearItems();
	
	/** Returns the number of page items in this page. **/
	public int items();
	
	/** Returns the (n+1):th page item in this page. **/
	public PageItem getItem(int n);
	
	/** Returns the top position of the page. **/
	public int getYTop();
	
	/** Sets the top position of the page. **/
	public void setYTop(int y);
	
	/** Returns true when the page is at the top. **/
	public boolean atTop();
	
	/** Returns true when the page is at the bottom. **/
	public boolean atBottom();
	
	/** Returns the height of the info page. **/
	public int getHeight();

}
